<template>
  <div>
    <header>
      <span class="fa fa-arrow-left" id="sp" @click="backClick"></span>
      <span>欢迎登录</span>
      <router-link to="/mine/regist">注册</router-link>
    </header>
  </div>
</template>
<script>
  export default {
    methods: {
      backClick: function () {
        this.$store.commit("setPath")
      },
    }
  }
</script>

<style scoped>
  header {
    background-color: white;
    height: 44px;
    border-bottom: solid 1px #dddddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
  }

  header a {
    border: 1px solid #dddddd;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: #111111;
    background-color: #eeeeee;
  }
</style>
